package basics

import (
	"APT/internal/model/entity"
	"APT/internal/model/input/input_basics"
	"APT/internal/model/input/input_hotel"
	"github.com/gogf/gf/v2/frame/g"
)

type HomeDateLoadReq struct {
	g.Meta `path:"/home/info" method:"post" tags:"APP_BASICS" summary:"[首页]加载信息"`
}

type HomeDateLoadRes struct {
	Banner          []*input_basics.PmsBannerListModel  `json:"banner" dc:"banner数据"`
	Property        []*input_hotel.PmsPropertyListModel `json:"property" dc:"物业数据"`
	ImmovablesCover string                              `json:"immovablesCover" dc:"不动产封面"`
	ImmovablesPath  string                              `json:"immovablesPath" dc:"不动产跳转地址"`
	ImmovablesChain string                              `json:"immovablesChain" dc:"不动产内外联  IN 内链  OUT 外联"`
	AlertMessage    []*HomeDateAlertMessage             `json:"alertMessage" dc:"首页弹窗信息"`
	MinDaysNotice   float64                             `json:"min_days_notice" dc:"短租模式最小预定区间"`
}

type HomeDateAlertMessage struct {
	Id            int    `json:"id"`
	NotifyType    string `json:"notify_type"`
	NotifyContent string `json:"notify_content"`
}

type HomeDateConfigReq struct {
	g.Meta `path:"/home/config" method:"post" tags:"APP_BASICS" summary:"[首页]配置信息"`
}
type HomeDateConfigRes struct {
	ConfigList []*entity.PmsAppconfig `json:"config"`
}

type ReadAlertMessageReq struct {
	g.Meta `path:"/home/read_alert_message" method:"post" tags:"APP_BASICS" summary:"[首页]已读弹窗信息"`
	Id     int `json:"id" v:"required#请输入id" dc:"id"`
}

type ReadAlertMessageRes struct{}

type HomeDeviceInfoReq struct {
	g.Meta `path:"/home/deviceInfo" method:"post" tags:"APP_BASICS" summary:"[首页]设备信息"`
}

type HomeDeviceInfoRes struct {
	DeviceSn int `json:"deviceSn" dc:"设备号"`
}
